package com.proton.carepatchtemp.database.table;

import com.proton.carepatchtemp.database.BaseBean;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Generated;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.NotNull;
import org.greenrobot.greendao.annotation.Transient;
import org.greenrobot.greendao.annotation.Unique;

/**
 * Created by Api on 2016/11/3.
 */
@Entity
public class Msg extends BaseBean {
    @Id(autoincrement = false)
    @NotNull
    @Unique
    private Long id;
    private Long uid;
    private String title;
    private String contents;
    private String time;
    private int deleted;
    private int readstatus;
    @Transient
    private boolean checked = false;

    @Generated(hash = 763258756)
    public Msg(@NotNull Long id, Long uid, String title, String contents,
               String time, int deleted, int readstatus) {
        this.id = id;
        this.uid = uid;
        this.title = title;
        this.contents = contents;
        this.time = time;
        this.deleted = deleted;
        this.readstatus = readstatus;
    }

    @Generated(hash = 23037457)
    public Msg() {
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getUid() {
        return uid;
    }

    public void setUid(Long uid) {
        this.uid = uid;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContents() {
        return contents;
    }

    public void setContents(String contents) {
        this.contents = contents;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public int getDeleted() {
        return deleted;
    }

    public void setDeleted(int deleted) {
        this.deleted = deleted;
    }

    public int getReadstatus() {
        return readstatus;
    }

    public void setReadstatus(int readstatus) {
        this.readstatus = readstatus;
    }

    public boolean isChecked() {
        return checked;
    }

    public void setChecked(boolean checked) {
        this.checked = checked;
    }

}
